package _9练习;

public class Car {
boolean status;
	
	public class Engline{
		
		public void work()
		{
			if(status==true)
				System.out.println("发动机飞速旋转");
			else
				System.out.println("发动机停止工作");
		}
		
	}
	
	public boolean isStatus()
	{
		return status;
	}
	
	public void setStatus(boolean status) {
		this.status = status;
	}
		}
	

